package com.trkj.pojos;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.*;


/**
 * The persistent class for the DRUGSTORAGE_BUYMEDCINE_DETAILS database table.
 * 
 */
@Entity
@Table(name="DRUGSTORAGE_BUYMEDCINE_DETAILS")
@NamedQuery(name="DrugstorageBuymedcineDetail.findAll", query="SELECT d FROM DrugstorageBuymedcineDetail d")
public class DrugstorageBuymedcineDetail implements Serializable {
	public DrugstorageBuymedcineDetail(BigDecimal buymedcineMedcinenumber,
			DrugstorageAllbuymedcine drugstorageAllbuymedcine, MedcineDetail medcineDetail) {
		super();
		this.buymedcineMedcinenumber = buymedcineMedcinenumber;
		this.drugstorageAllbuymedcine = drugstorageAllbuymedcine;
		this.medcineDetail = medcineDetail;
	}

	public DrugstorageBuymedcineDetail() {
		super();
		// TODO Auto-generated constructor stub
	}

	private static final long serialVersionUID = 1L;

	@Id
/*	@Column(name="DRUGSTORAGE_BUYMEDCINE_DID")
	@SequenceGenerator(initialValue=100,allocationSize=1,name="DRUGSTORAGE_BUYMEDCINE_DID_GENERATOR", sequenceName="SEQID")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DRUGSTORAGE_BUYMEDCINE_DID_GENERATOR")
	private Long drugStorageId;
*/
	@Column(name="BUYMEDCINE_MEDCINECOST")
	private BigDecimal buymedcineMedcinecost;

	@Column(name="BUYMEDCINE_MEDCINEID")
	private BigDecimal buymedcineMedcineid;

	@Column(name="BUYMEDCINE_MEDCINENUMBER")
	private BigDecimal buymedcineMedcinenumber;

	//bi-directional many-to-one association to DrugstorageAllbuymedcine
	@ManyToOne
	@JoinColumn(name="DRUGSTORAGE_ALLBUYMEDCINE_ID")
	private DrugstorageAllbuymedcine drugstorageAllbuymedcine;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	/*public Long getDrugStorageId() {
		return drugStorageId;
	}

	public void setDrugStorageId(Long drugStorageId) {
		this.drugStorageId = drugStorageId;
	}*/

	public BigDecimal getBuymedcineMedcinecost() {
		return buymedcineMedcinecost;
	}

	public void setBuymedcineMedcinecost(BigDecimal buymedcineMedcinecost) {
		this.buymedcineMedcinecost = buymedcineMedcinecost;
	}

	public BigDecimal getBuymedcineMedcineid() {
		return buymedcineMedcineid;
	}

	public void setBuymedcineMedcineid(BigDecimal buymedcineMedcineid) {
		this.buymedcineMedcineid = buymedcineMedcineid;
	}

	public BigDecimal getBuymedcineMedcinenumber() {
		return buymedcineMedcinenumber;
	}

	public void setBuymedcineMedcinenumber(BigDecimal buymedcineMedcinenumber) {
		this.buymedcineMedcinenumber = buymedcineMedcinenumber;
	}

	public DrugstorageAllbuymedcine getDrugstorageAllbuymedcine() {
		return drugstorageAllbuymedcine;
	}

	public void setDrugstorageAllbuymedcine(DrugstorageAllbuymedcine drugstorageAllbuymedcine) {
		this.drugstorageAllbuymedcine = drugstorageAllbuymedcine;
	}

	public MedcineDetail getMedcineDetail() {
		return medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff() {
		return staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	

}